gadgetsettarget()
Description:
Set a target for a gadget; this gadget will control the value of the target gadget.
Syntax:
Required syntax: |
| gadgetsettarget( gadgethandle , target_gadgethandle )
|
Optional syntax: |
| gadgetsettarget( gadgethandle , target_gadgethandle , [ target_alter_type ] , [ gadget_send_value ] )
|
Parameters:
Required parameters |
Description |
|
| gadgethandle | The handle to the gadget you wish to alter/set the target for | |
| target_gadgethandle | The actual handle to the target gadget, this targetgadget will be controlled by the gadgethandle-gadget. | |
Optional parameters |
Description |
Default |
| target_alter_type | This is how the target gadget´s value is changed: 0 : A normal alter method, the textbox gadget´s text is changed, the float gadget´s value is changed..etc, as descriped in the gadgetsetvalue() command. 1: change the horizontal position ( x ) of: either the image in gadgetimage(), the text in the gadgettexteditor() or the options in gadgettextselection(). 2: change the vertical position ( y ) of: either the image in gadgetimage(), the text in the gadgettexteditor() or the options in gadgettextselection().
|
0 |
| gadget_send_value | This indicates which source value the target gadget should
recieve, and therefore also which value the gadget should send: 0 : A normal send method, send normal values to target, as descriped in the gadgetsetvalue() command. 1: send the horizontal position ( x ) of: either the image in gadgetimage(), the text in the gadgettexteditor() or or the options in gadgettextselection(). 2: send the vertical position ( y ) of either: the image in gadgetimage(), the text in the gadgettexteditor() or the options in gadgettextselection(). |
0 |
Returns:
None
Example: